import java.util.Scanner;

public class IfExercise {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        System.out.println("请输入两个数：");
        int a = sc.nextInt();
        int b = sc.nextInt();

        if (a > b)
            System.out.println(a);
        else
            System.out.println(b);

        System.out.println("请输入一个数：");
        int c = sc.nextInt();
        if (c % 3 == 0)
            System.out.println("能被3整除");
        else
            System.out.println("不能被3整除");


        System.out.println("请输入一个数(1-7):");
        int d = sc.nextInt();
        if (d == 1)
            System.out.println("周1");
        else if (d == 2)
            System.out.println("周2");
        else if (d == 3)
            System.out.println("周3");
        else if (d == 4)
            System.out.println("周4");
        else if (d == 5)
            System.out.println("周5");
        else if (d == 6)
            System.out.println("周6");
        else if (d == 7)
            System.out.println("周日");

        System.out.println("请输入一个数(1-7):");
        int e = sc.nextInt();

        if (e >= 1 && e <= 5)
            System.out.println("工作日");
        else
            System.out.println("休息日");

        System.out.println("请输入成绩：");
        double score = sc.nextDouble();

        score = score / 10;

        if (score >= 9)
            System.out.println("优秀");
        else if (score >= 8)
            System.out.println("良好");
        else if (score >= 7)
            System.out.println("中等");
        else if (score >= 6)
            System.out.println("及格");
        else
            System.out.println("不及格");

        System.out.println("请输入一个年份：");
        int year = sc.nextInt();
        if (year % 4 == 0 && year % 100 != 0 || year % 400 == 0) {
            System.out.println(year + "是闰年");
        }
        else {
            System.out.println(year + "不是闰年");


            System.out.println("请输入一个三位数");
            int n = sc.nextInt();

            int n1 = n / 100;
            int n2 = (n % 100) / 10;
            int n3 = n % 10;
            if (n < 1000 && n > 99) {
                if (n == (n1 * n1 * n1 + n2 * n2 * n2 + n3 * n3 * n3)) {
                    System.out.println("这个数是水仙花");
                } else {
                    System.out.println("这个数不是水仙花数");
                }
            } else {
                System.out.println("输入有误，请重新输入");
            }
        }


    }
}
